{template 'header', $module}
<div class="menus">
	<table cellpadding="0" cellspacing="0">
		<tr>
			<td class="tab" id="add"></td>
			<td class="tab_nav">&nbsp;</td>
			<td class="tab" id="home"><a href="favorite.php"><span>车型收藏</span></a></td>
			<td class="tab_nav">&nbsp;</td>
			<td class="tab" id="type"></td>
		</tr>
	</table>
</div>
<form action="fav.php">
	<div class="tt">
		&nbsp;{$fields_select}&nbsp;
        <input type="hidden" name="mid" value="{$mid}" />
		<input type="text" size="50" name="name" value="{$kw}" title="关键词"/>&nbsp;
		{$type_select}&nbsp;
		<input type="submit" value=" 搜 索 " class="btn"/>&nbsp;
		<input type="button" value=" 重 置 " class="btn" onclick="window.location='favorite.php';"/>
	</div>
</form>
<div class="ls">
	<table class="data-form">
		<tr>
			<th>车型</th>
			<th>车款</th>
			<th width="150">添加时间</th>
			<th width="80">管理</th>
		</tr>
		{loop $lists $k $v}
			<tr >
				<td>&nbsp;<a href="/auto/?id={$v['value']}">{$v['autoname']}</a>&nbsp;</td>
				<td align="left">&nbsp;<a href="/auto/?id={$v['value']}&carid={$v['ext_value']}" target="_blank" class="t">{$v['carname']}</a></td>
				<td class="f_gray px11">{$v[addtime]}</td>
				<td>
					<a href="fav.php?action=delete&id={$v['id']}" onclick="return confirm('确定要删除吗？此操作将不可撤销');"><img width="16" height="16" src="image/delete.png" title="删除" alt=""/></a>
				</td>
			</tr>
		{/loop}
	</table>
</div>
</form>
	{if $MG[favorite_limit]}
	<div class="con">收藏夹容量 <span class="f_b cred">{$MG[favorite_limit]}</span> 条&nbsp;&nbsp;&nbsp;当前已收藏 <span class="f_b">{$limit_used}</span> 条&nbsp;&nbsp;&nbsp;还可以收藏 <span class="f_b f_blue">{$limit_free}</span> 条</div>
	{/if}
<div class="pages">{$pages}</div>
{template 'footer', $module}